﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Text;
using WcfMsmqContract;

namespace ConsoleHost
{
    class Program
    {
        static void Main(string[] args)
        {
            using (ServiceHost host = new ServiceHost(typeof(MSMQ)))
            {
                host.Open();

                Console.WriteLine("服务已启动(WCF.ServiceLib.Message.MSMQ)");
                Console.WriteLine("按<ENTER>停止服务");
                Console.ReadLine();

            }

        }
    }
}
